package stockticker.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

import org.hibernate.annotations.Entity;
import org.hibernate.annotations.Table;

@Entity
@Table (appliesTo="my_watchlist")
@Inheritance (strategy=InheritanceType.SINGLE_TABLE)
public class MyWatchlist implements Serializable {
	private String symbol;

	@Id
	@Column (name="SYMBOL", unique=true, length=5, nullable=false, insertable=true, updatable=true)
	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
}
